package com.yyx.up.consumer;

import com.yyx.up.common.bean.Consumer;
import com.yyx.up.consumer.bean.WatchLogConsumer;

import java.io.IOException;

/**
 * Description: 启动消费者
 * @Author: yyx
 * @Create: 2023/4/14 11:27
 * @Version: 8
 */
public class Bootstrap {
    public static void main(String[] args) throws IOException {
        // 创建消费者
        Consumer consumer = new WatchLogConsumer();

        // 消费数据
        consumer.consume();

        // 关闭资源
        consumer.close();
    }
}
